package cn.mulanbay.admin.api.web.bean.request.auth;

import cn.mulanbay.common.bean.PageSearch;
import cn.mulanbay.persistent.enums.CommonStatus;
import cn.mulanbay.persistent.enums.FunctionDataType;
import cn.mulanbay.persistent.enums.FunctionType;
import cn.mulanbay.persistent.enums.UrlType;
import cn.mulanbay.persistent.query.CrossType;
import cn.mulanbay.persistent.query.Operator;
import cn.mulanbay.persistent.query.Query;

public class SystemFunctionSearch extends PageSearch {

    @Query(column = "name", op = Operator.LIKE, crossType = CrossType.OR)
    private String name;

    @Query(column = "status", op = Operator.EQ)
    private CommonStatus status;

    @Query(column = "url_type", op = Operator.EQ)
    private UrlType urlType;

    @Query(column = "function_type", op = Operator.EQ)
    private FunctionType functionType;

    @Query(column = "function_data_type", op = Operator.EQ)
    private FunctionDataType functionDataType;

    @Query(column = "support_methods", op = Operator.LIKE)
    private String method;

    @Query(column = "pid", op = Operator.EQ)
    private Long pid;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public CommonStatus getStatus() {
        return status;
    }

    public void setStatus(CommonStatus status) {
        this.status = status;
    }

    public UrlType getUrlType() {
        return urlType;
    }

    public void setUrlType(UrlType urlType) {
        this.urlType = urlType;
    }

    public FunctionType getFunctionType() {
        return functionType;
    }

    public void setFunctionType(FunctionType functionType) {
        this.functionType = functionType;
    }

    public FunctionDataType getFunctionDataType() {
        return functionDataType;
    }

    public void setFunctionDataType(FunctionDataType functionDataType) {
        this.functionDataType = functionDataType;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }
}
